﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Client
{
    /// <summary>
    /// 交易申请状态
    /// </summary>
    public enum TradeApplyState
    {
        /// <summary>
        /// 申请成功
        /// </summary>
        Apply_Success = 1,
        /// <summary>
        /// 申请成功,并正在执行
        /// </summary>
        Executeing = 2,
        /// <summary>
        /// 已执行，并且发生错误
        /// </summary>
        Execute_Error = 3,
        /// <summary>
        /// 已执行，由于账户余额不足造成的错误
        /// </summary>
        Execute_Balance_Error = 4,
        /// <summary>
        /// 已执行，但信息出错，不可能成功
        /// </summary>
        Execute_Info_Error = 50,
        /// <summary>
        /// 执行成功
        /// </summary>
        Execute_Success = 100
    }

    /// <summary>
    /// 交易通道类型
    /// </summary>
    [Flags]
    public enum ChannelType
    {
        /// <summary>
        /// 空
        /// </summary>
        None = 0,
        /// <summary>
        /// 仅支持Web 应用
        /// </summary>
        Web = 1,
        /// <summary>
        /// 仅支持原生 App 应用
        /// </summary>
        NativeApp = 2,
        /// <summary>
        /// 仅支持Web App 
        /// </summary>
        WebApp = 4,
        /// <summary>
        /// 仅支持手机页面
        /// </summary>
        Wap = 8,
        /// <summary>
        /// 所有
        /// </summary>
        ALL = Web | NativeApp | WebApp | Wap
    }
}
